-- GENERATED SPELL FOR [Wretched Thug] --


function spell0_15645(pUnit, Event) --@Bitter Withdrawal,n/a--
pUnit:FullCastSpellOnTarget(29098,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15645', 5000, 1)
end

function Sorts_15645(pUnit, Event)
local choix_sorts_15645 = math.random(0, 0)
if choix_sorts_15645 == 0 then
pUnit:RegisterEvent('spell0_15645', 1, 1)
end
end

function mob15645_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15645', math.random(1500, 3000), 1)
end

function mob15645_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15645_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15645_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15645, 1, 'mob15645_Action')
RegisterUnitEvent(15645, 2, 'mob15645_Leave')
RegisterUnitEvent(15645, 3, 'mob15645_Kill')
RegisterUnitEvent(15645, 4, 'mob15645_Die')
